# Maintainer: Ray Donnelly <mingwandroid@gmail.com>

pkgname=pacman-mirrors
pkgver=20180604
pkgrel=2
pkgdesc="MSYS2 mirror list for use by pacman"
arch=('any')
url="https://msys2.sourceforge.io/"
license=('GPL')
groups=('base')
source=(mirrorlist.msys
        mirrorlist.mingw32
        mirrorlist.mingw64)
sha256sums=('0041bc0b15f5ea81ed40266eccc6b2d878e7d0f10eb4070cc3cef0f1ea358f87'
            '36fcf57db8f72972eca89801d15f3b13a34743782672547c7f6e8898d4ecdf65'
            'ef2724d1308461e72d3c01645910247af1e4cc808a723fe7f1a3f7fcdb15508c')

package() {
  mkdir -p ${pkgdir}/etc/pacman.d
  install -m644 ${srcdir}/mirrorlist.msys ${pkgdir}/etc/pacman.d/
  install -m644 ${srcdir}/mirrorlist.mingw32 ${pkgdir}/etc/pacman.d/
  install -m644 ${srcdir}/mirrorlist.mingw64 ${pkgdir}/etc/pacman.d/
}
